package com.jufa_3.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CostItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String costType;

    private String costName;

    private String isCombo;

    private Integer comboId;

    private Float price;

    private String enable;

    private LocalDateTime createDate;

    private LocalDateTime updataDate;

    public CostItem(String costName) {
        this.costName = costName;
        this.isCombo = "1";
    }

    public CostItem() {
    }
}
